package com.matt.domain;

import com.matt.foundation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;

/**
 * *************************
 * description :合同回款记录
 * Created by Ron
 * from com.matt
 * on 2018/6/19 0019.
 * ***********************
 */
@Entity
@Table(name = "contract_history")
@Data
@EqualsAndHashCode(callSuper = true)
public class ContractHistory extends Domain {

    @Column(columnDefinition = "decimal(12, 2) COMMENT '汇款金额'")
    private BigDecimal backMoney=BigDecimal.ZERO;

    @Column(columnDefinition = "longtext COMMENT '回款内容'")
    private String content;

    @Column(columnDefinition = "varchar(50) COMMENT '日志操作类型  create:创建  update :修改  delete:删除 transfer:转移 upload :上传  follow :跟进 '")
    private String operationType;

    @Column(columnDefinition = "varchar(32) COMMENT '客户id'")
    private String clienteleId;

    @Column(columnDefinition = "varchar(32) COMMENT '操作人id'")
    private String staffId;

    @Column(columnDefinition = "varchar(255) COMMENT '操作人姓名'")
    private String staffName;

    @Column(columnDefinition = "varchar(255) COMMENT '员工头像'")
    private String staffHeadImgUrl;

    @Column(columnDefinition = "varchar(32) COMMENT '合同id'")
    private String contractId;

    //合同状态
    @Transient
    private Integer contractStatus;

    //合同状态值
    @Transient
    private String contractStatusVal;

}
